Свойство | Тип | Описание | |
---|---|---|---|
Point1 | Point | ||
Point2 | Point | ||
ZeroLength |
Метод | Описание | |
---|---|---|
AsRay ( ) : Microsoft.Xna.Framework.Ray | ||
ClosestPointTo ( Point point ) : Point | ||
CollideAgainst ( Polygon polygon ) : bool | ||
DistanceTo ( AxisAlignedRectangle rectangle ) : float | ||
DistanceTo ( Microsoft.Xna.Framework.Circle circle ) : float | ||
DistanceTo ( Point point ) : float | ||
DistanceTo ( Point point, |
||
DistanceTo ( Point point, Microsoft.Xna.Framework.Vector3 &connectingVector ) : float |
Returns the distance to the argument point as well as the connectin Vector3 from the Point to this.
|
|
DistanceTo ( Polygon polygon ) : float | ||
DistanceTo ( |
||
DistanceTo ( Microsoft.Xna.Framework.Vector3 vector ) : float | ||
DistanceTo ( double x, double y ) : float | ||
DistanceToSquared ( Microsoft.Xna.Framework.Vector3 &vector, |
||
GetLength ( ) : double |
Returns the length of the segment.
|
|
GetLengthSquared ( ) : double | ||
IntersectionPoint ( |
Returns the point where this segment intersects the argument segment.
|
|
Intersects ( |
Determines whether this segment intersects the argument segment.
|
|
Intersects ( |
||
IsClosestPointOnEndpoint ( Point &point ) : bool |
Determines whether the closest point on the segment lies on one of the endpoints.
|
|
IsParallelAndTouching ( |
||
MoveBy ( float x, float y ) : void |
Shifts the segment by moving both points by the argument x,y values.
|
|
Normalize ( ) : void |
Sets the length of the segment to 1 unit by moving the 2nd point. If the segment has 0 length (the endpoints are equal), the method does not change the segment; length will remain 0. |
|
ScaleBy ( float amountToScaleBy ) : void | ||
Segment ( Microsoft.Xna.Framework.Graphics.VertexPositionColor &point1, Microsoft.Xna.Framework.Graphics.VertexPositionColor &point2 ) : System | ||
Segment ( Point point1, Point point2 ) : System |
Creates a new Segment with the argument points as the endpoints.
|
|
Segment ( Microsoft.Xna.Framework.Vector3 point1, Microsoft.Xna.Framework.Vector3 point2 ) : System | ||
Segment ( double point1X, double point1Y, double point2X, double point2Y ) : System | ||
SetPoints ( Microsoft.Xna.Framework.Graphics.VertexPositionColor &point1, Microsoft.Xna.Framework.Graphics.VertexPositionColor &point2 ) : void | ||
SetPoints ( float x1, float y1, float x2, float y2 ) : void | ||
ToString ( ) : string | ||
ToVector3 ( ) : Microsoft.Xna.Framework.Vector3 |
public AsRay ( ) : Microsoft.Xna.Framework.Ray | ||
Результат | Microsoft.Xna.Framework.Ray |
public ClosestPointTo ( Point point ) : Point | ||
point | Point | |
Результат | Point |
public CollideAgainst ( Polygon polygon ) : bool | ||
polygon | Polygon | |
Результат | bool |
public DistanceTo ( AxisAlignedRectangle rectangle ) : float | ||
rectangle | AxisAlignedRectangle | |
Результат | float |
public DistanceTo ( Microsoft.Xna.Framework.Circle circle ) : float | ||
circle | Microsoft.Xna.Framework.Circle | |
Результат | float |
public DistanceTo ( Point point, |
||
point | Point | |
connectingSegment | ||
Результат | float |
public DistanceTo ( Point point, Microsoft.Xna.Framework.Vector3 &connectingVector ) : float | ||
point | Point | The point to get the distance to. |
connectingVector | Microsoft.Xna.Framework.Vector3 | The connecting vector from the argument Pointn to this. |
Результат | float |
public DistanceTo ( Polygon polygon ) : float | ||
polygon | Polygon | |
Результат | float |
public DistanceTo ( |
||
otherSegment | ||
Результат | float |
public DistanceTo ( Microsoft.Xna.Framework.Vector3 vector ) : float | ||
vector | Microsoft.Xna.Framework.Vector3 | |
Результат | float |
public DistanceTo ( double x, double y ) : float | ||
x | double | |
y | double | |
Результат | float |
public DistanceToSquared ( Microsoft.Xna.Framework.Vector3 &vector, |
||
vector | Microsoft.Xna.Framework.Vector3 | |
connectingSegment | ||
Результат | float |
public IntersectionPoint ( |
||
s2 | The segment to test for intersection. | |
intersectionPoint | Point | |
Результат | void |
public Intersects ( |
||
s2 | The segment to test for intersection. | |
Результат | bool |
public Intersects ( |
||
s2 | ||
intersectionPoint | Point | |
Результат | bool |
public IsClosestPointOnEndpoint ( Point &point ) : bool | ||
point | Point | The point to test to. |
Результат | bool |
public IsParallelAndTouching ( |
||
s2 | ||
intersectionPoint | Point | |
Результат | bool |
public MoveBy ( float x, float y ) : void | ||
x | float | The number of units to shift the segment by on the x axis. |
y | float | The number of units to shift the segment by on the y axis. |
Результат | void |
public ScaleBy ( float amountToScaleBy ) : void | ||
amountToScaleBy | float | |
Результат | void |
public Segment ( Microsoft.Xna.Framework.Graphics.VertexPositionColor &point1, Microsoft.Xna.Framework.Graphics.VertexPositionColor &point2 ) : System | ||
point1 | Microsoft.Xna.Framework.Graphics.VertexPositionColor | |
point2 | Microsoft.Xna.Framework.Graphics.VertexPositionColor | |
Результат | System |
public Segment ( Point point1, Point point2 ) : System | ||
point1 | Point | The first Point. |
point2 | Point | The second Point. |
Результат | System |
public Segment ( Microsoft.Xna.Framework.Vector3 point1, Microsoft.Xna.Framework.Vector3 point2 ) : System | ||
point1 | Microsoft.Xna.Framework.Vector3 | |
point2 | Microsoft.Xna.Framework.Vector3 | |
Результат | System |
public Segment ( double point1X, double point1Y, double point2X, double point2Y ) : System | ||
point1X | double | |
point1Y | double | |
point2X | double | |
point2Y | double | |
Результат | System |
public SetPoints ( Microsoft.Xna.Framework.Graphics.VertexPositionColor &point1, Microsoft.Xna.Framework.Graphics.VertexPositionColor &point2 ) : void | ||
point1 | Microsoft.Xna.Framework.Graphics.VertexPositionColor | |
point2 | Microsoft.Xna.Framework.Graphics.VertexPositionColor | |
Результат | void |
public SetPoints ( float x1, float y1, float x2, float y2 ) : void | ||
x1 | float | |
y1 | float | |
x2 | float | |
y2 | float | |
Результат | void |
public ToVector3 ( ) : Microsoft.Xna.Framework.Vector3 | ||
Результат | Microsoft.Xna.Framework.Vector3 |