Struct Curve
- Namespace
- Kroltan.Keen.Compute
- Assembly
- me.kroltan.keen-vectors.dll
[DebuggerDisplay("{Start} {End} ({Flags})")]
[StructLayout(LayoutKind.Sequential)]
public struct Curve
- Inherited Members
-
Fields
A
public readonly Vector2 A
Field Value
- Vector2
B
public readonly Vector2 B
Field Value
- Vector2
End
public readonly Vector2 End
Field Value
- Vector2
Flags
Field Value
- Flag
Start
public readonly Vector2 Start
Field Value
- Vector2
Properties
EndTangent
public Vector2 EndTangent { get; }
Property Value
- Vector2
StartTangent
public Vector2 StartTangent { get; }
Property Value
- Vector2
Methods
Bezier(Vector2, Vector2, Vector2, Vector2, Flag)
public static Curve Bezier(Vector2 start, Vector2 a, Vector2 b, Vector2 end, Flag flags = (Flag)0)
Parameters
start
Vector2
a
Vector2
b
Vector2
end
Vector2
flags
Flag
Returns
- Curve
LineSegment(Vector2, Vector2, Flag)
public static Curve LineSegment(Vector2 start, Vector2 end, Flag flags = (Flag)0)
Parameters
start
Vector2
end
Vector2
flags
Flag
Returns
- Curve
Reverse()
Returns
- Curve
Operators
operator +(Curve, Vector2)
public static Curve operator +(Curve self, Vector2 offset)
Parameters
self
Curve
offset
Vector2
Returns
- Curve
operator -(Curve, Vector2)
public static Curve operator -(Curve self, Vector2 offset)
Parameters
self
Curve
offset
Vector2
Returns
- Curve