Struct MCvPoint3D32f
Managed Structure equivalent to CvPoint3D32f
public struct MCvPoint3D32f : IEquatable<MCvPoint3D32f>
- Implements
- Inherited Members
Constructors
MCvPoint3D32f(float, float, float)
Create a MCvPoint3D32f structure with the specific x and y coordinates
public MCvPoint3D32f(float x, float y, float z)
Parameters
Fields
X
x-coordinate
public float X
Field Value
Y
y-coordinate
public float Y
Field Value
Z
z-coordinate
public float Z
Field Value
Properties
Norm
return the norm of this 3D point
public double Norm { get; }
Property Value
Methods
CrossProduct(MCvPoint3D32f)
Return the cross product of two 3D point
public MCvPoint3D32f CrossProduct(MCvPoint3D32f point)
Parameters
point
MCvPoint3D32fthe other 3D point
Returns
- MCvPoint3D32f
The cross product of the two 3D point
DotProduct(MCvPoint3D32f)
Return the dot product of two 3D point
public float DotProduct(MCvPoint3D32f point)
Parameters
point
MCvPoint3D32fthe other 3D point
Returns
- float
The dot product of the two 3D point
Equals(MCvPoint3D32f)
Return true if the location of the two points are equal
public bool Equals(MCvPoint3D32f other)
Parameters
other
MCvPoint3D32fThe other point to compare with
Returns
- bool
True if the location of the two points are equal
GetNormalizedPoint()
Get the normalized point
public MCvPoint3D32f GetNormalizedPoint()
Returns
- MCvPoint3D32f
The normalized point
Operators
operator +(MCvPoint3D32f, MCvPoint3D32f)
Compute the sum of two 3D points
public static MCvPoint3D32f operator +(MCvPoint3D32f p1, MCvPoint3D32f p2)
Parameters
p1
MCvPoint3D32fThe first point to be added
p2
MCvPoint3D32fThe second point to be added
Returns
- MCvPoint3D32f
The sum of two points
implicit operator MCvPoint3D64f(MCvPoint3D32f)
The implicit operator to convert MCvPoint3D32f to MCvPoint3D64f
public static implicit operator MCvPoint3D64f(MCvPoint3D32f point)
Parameters
point
MCvPoint3D32fThe point to be converted
Returns
- MCvPoint3D64f
The converted point
operator *(MCvPoint3D32f, float)
Multiply the point with a scale
public static MCvPoint3D32f operator *(MCvPoint3D32f p, float scale)
Parameters
p
MCvPoint3D32fThe point to be multiplied
scale
floatThe scale
Returns
- MCvPoint3D32f
The point multiplied by the scale
operator *(float, MCvPoint3D32f)
Multiply the point with a scale
public static MCvPoint3D32f operator *(float scale, MCvPoint3D32f p)
Parameters
scale
floatThe scale
p
MCvPoint3D32fThe point to be multiplied
Returns
- MCvPoint3D32f
The point multiplied by the scale
operator -(MCvPoint3D32f, MCvPoint3D32f)
Subtract one point from the other
public static MCvPoint3D32f operator -(MCvPoint3D32f p1, MCvPoint3D32f p2)
Parameters
p1
MCvPoint3D32fThe point to subtract from
p2
MCvPoint3D32fThe value to be subtracted
Returns
- MCvPoint3D32f
The subtraction of one point from the other