Class ConnectVertexWithAngleStrategy
ConnectWithAngle strategy that connects two points in a way so incoming edge of other vertex has certain angle with given direction. Creates one middle vertex to achieve this but it can be skipped if two points are already aligned.
Inheritance
System.Object
ConnectVertexWithAngleStrategy
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.Spatial.AdaptiveGrid
Assembly: Hypar.Elements.dll
Syntax
public class ConnectVertexWithAngleStrategy : IAddVertexStrategy
Constructors
ConnectVertexWithAngleStrategy(Vector3, Vector3, Double)
Create new ConnectWithAngle strategy.
Declaration
public ConnectVertexWithAngleStrategy(Vector3 other, Vector3 direction, double angle)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | other | Other position to connect. |
Vector3 | direction | Reference direction. |
System.Double | angle | Required angle between edge incoming into other vertex and referenced direction. |
Properties
EndVertex
Created end vertex.
Declaration
public Vertex EndVertex { get; }
Property Value
Type | Description |
---|---|
Vertex |
MiddleVertex
Created middle vertex.
Declaration
public Vertex MiddleVertex { get; }
Property Value
Type | Description |
---|---|
Vertex |
Methods
Add(AdaptiveGrid, Vector3, Boolean)
Function called by grid were new vertices are added and connected.
Declaration
public Vertex Add(AdaptiveGrid grid, Vector3 position, bool cut)
Parameters
Type | Name | Description |
---|---|---|
AdaptiveGrid | grid | Grid to add vertices into |
Vector3 | position | Position of base vertex. |
System.Boolean | cut | Should new edges be automatically cut with the rest of the grid. |
Returns
Type | Description |
---|---|
Vertex |