OVertex class

A vertex with x and y components.

Use shorthand initializers to create a new OVertex via one of the following extensions:

  • (0.0, 0.0).v => OVertex(0.0, 0.0)
  • (0, 0).v => OVertex(0.0, 0.0)

An OVertex can be created from instances of other classes:

  • Offset(0.0, 0.0).toOVertex()

See also:

  • BezierOVertex, a vertex with bezier control points for each direction on a rectangular mesh.
Implementers
Available extensions

Constructors

OVertex(double x, double y)
Creates a new OVertex with the given x and y values.
OVertex.all(double xy)
Creates a new OVertex with the same x and y values.
OVertex.bezier({required OVertex position, OVertex? north, OVertex? east, OVertex? south, OVertex? west})
Creates an BezierOVertex with the given control points.
factory
OVertex.copy(OVertex other)
Creates a copy of the given OVertex.
OVertex.offset(Offset offset)
Creates a new OVertex from an ui.Offset.
OVertex.zero()
Creates a new zeroed and empty OVertex.

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x ↔ double
The x component of the offset.
getter/setter pair
y ↔ double
The y component of the offset.
getter/setter pair

Methods

bezier({OVertex? north, OVertex? east, OVertex? south, OVertex? west}) → BezierOVertex

Available on OVertex, provided by the BezierizeOVertex extension

Returns a new OVertex with the given control points.
clone() → OVertex
Create a copy of this OVertex.
lerpTo(OVertex to, double t) → OVertex
Linearly interpolate between two OVertex objects.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toOffset() → Offset
Converts this OVertex to an ui.Offset.
toString() → String
A string representation of this object.
override

Operators

operator *(double scale) → OVertex
Binary multiplication operator.
operator +(OVertex other) → OVertex
Binary addition operator.
operator -(OVertex other) → OVertex
Binary subtraction operator.
operator ==(Object other) → bool
Check if two OVertex objects are equal.
override
operator unary-() → OVertex
Unary negation operator.