PostgresLine class final

An infinite line a·x + b·y + c = 0, the value of a Postgres line column.

PostgresLine.parse('{1,-1,0}').b    // -1
const PostgresLine(1, -1, 0).literal // {1,-1,0}
Implemented types
Annotations
  • @experimental

Constructors

PostgresLine(double a, double b, double c)
The line a·x + b·y + c = 0; Postgres rejects one where a and b are both zero.
const
PostgresLine.parse(String literal)
Parses the {a,b,c} literal Postgres emits for a line.
factory

Properties

a → double
The coefficient of x.
final
b → double
The coefficient of y.
final
c → double
The constant term.
final
hashCode → int
The hash code for this object.
no setteroverride
literal → String
The literal Postgres accepts and emits, {1,-1,0}.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override