Search Results for

    Show / Hide Table of Contents

    Struct Frame3f

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public struct Frame3f

    Constructors

    Frame3f(Frame3f)

    Declaration
    public Frame3f(Frame3f copy)
    Parameters
    Type Name Description
    Frame3f copy

    Frame3f(Vector3d)

    Declaration
    public Frame3f(Vector3d origin)
    Parameters
    Type Name Description
    Vector3d origin

    Frame3f(Vector3d, Vector3d)

    Declaration
    public Frame3f(Vector3d origin, Vector3d setZ)
    Parameters
    Type Name Description
    Vector3d origin
    Vector3d setZ

    Frame3f(Vector3f)

    Declaration
    public Frame3f(Vector3f origin)
    Parameters
    Type Name Description
    Vector3f origin

    Frame3f(Vector3f, Quaternionf)

    Declaration
    public Frame3f(Vector3f origin, Quaternionf orientation)
    Parameters
    Type Name Description
    Vector3f origin
    Quaternionf orientation

    Frame3f(Vector3f, Vector3f)

    Declaration
    public Frame3f(Vector3f origin, Vector3f setZ)
    Parameters
    Type Name Description
    Vector3f origin
    Vector3f setZ

    Frame3f(Vector3f, Vector3f, Vector3f, Vector3f)

    Declaration
    public Frame3f(Vector3f origin, Vector3f x, Vector3f y, Vector3f z)
    Parameters
    Type Name Description
    Vector3f origin
    Vector3f x
    Vector3f y
    Vector3f z

    Frame3f(Vector3f, Vector3f, Int32)

    Declaration
    public Frame3f(Vector3f origin, Vector3f setAxis, int nAxis)
    Parameters
    Type Name Description
    Vector3f origin
    Vector3f setAxis
    Int32 nAxis

    Fields

    Identity

    Declaration
    public static readonly Frame3f Identity
    Field Value
    Type Description
    Frame3f

    Properties

    Origin

    Declaration
    public Vector3f Origin { get; set; }
    Property Value
    Type Description
    Vector3f

    Rotation

    Declaration
    public Quaternionf Rotation { get; set; }
    Property Value
    Type Description
    Quaternionf

    X

    Declaration
    public Vector3f X { get; }
    Property Value
    Type Description
    Vector3f

    Y

    Declaration
    public Vector3f Y { get; }
    Property Value
    Type Description
    Vector3f

    Z

    Declaration
    public Vector3f Z { get; }
    Property Value
    Type Description
    Vector3f

    Methods

    AlignAxis(Int32, Vector3f)

    Declaration
    public void AlignAxis(int nAxis, Vector3f vTo)
    Parameters
    Type Name Description
    Int32 nAxis
    Vector3f vTo

    ConstrainedAlignAxis(Int32, Vector3f, Vector3f)

    Declaration
    public void ConstrainedAlignAxis(int nAxis, Vector3f vTo, Vector3f vAround)
    Parameters
    Type Name Description
    Int32 nAxis
    Vector3f vTo
    Vector3f vAround

    DistanceToPlane(Vector3f, Int32)

    distance from p to frame-axes-plane perpendicular to normal axis

    Declaration
    public float DistanceToPlane(Vector3f p, int nNormal)
    Parameters
    Type Name Description
    Vector3f p
    Int32 nNormal
    Returns
    Type Description
    Single

    DistanceToPlaneSigned(Vector3f, Int32)

    signed distance from p to frame-axes-plane perpendicular to normal axis

    Declaration
    public float DistanceToPlaneSigned(Vector3f p, int nNormal)
    Parameters
    Type Name Description
    Vector3f p
    Int32 nNormal
    Returns
    Type Description
    Single

    EpsilonEqual(Frame3f, Single)

    Declaration
    public bool EpsilonEqual(Frame3f f2, float epsilon)
    Parameters
    Type Name Description
    Frame3f f2
    Single epsilon
    Returns
    Type Description
    Boolean

    FromFrame(ref Box3d)

    Map box from local frame coordinates into "world" coordinates

    Declaration
    public Box3d FromFrame(ref Box3d box)
    Parameters
    Type Name Description
    Box3d box
    Returns
    Type Description
    Box3d

    FromFrame(ref Box3f)

    Map box from local frame coordinates into "world" coordinates

    Declaration
    public Box3f FromFrame(ref Box3f box)
    Parameters
    Type Name Description
    Box3f box
    Returns
    Type Description
    Box3f

    FromFrame(Frame3f)

    Map frame from local frame coordinates into "world" coordinates

    Declaration
    public Frame3f FromFrame(Frame3f f)
    Parameters
    Type Name Description
    Frame3f f
    Returns
    Type Description
    Frame3f

    FromFrame(ref Frame3f)

    Map frame from local frame coordinates into "world" coordinates

    Declaration
    public Frame3f FromFrame(ref Frame3f f)
    Parameters
    Type Name Description
    Frame3f f
    Returns
    Type Description
    Frame3f

    FromFrame(Quaternionf)

    Map quaternion from local frame coordinates into "world" coordinates

    Declaration
    public Quaternionf FromFrame(Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q
    Returns
    Type Description
    Quaternionf

    FromFrame(ref Quaternionf)

    Map quaternion from local frame coordinates into "world" coordinates

    Declaration
    public Quaternionf FromFrame(ref Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q
    Returns
    Type Description
    Quaternionf

    FromFrame(Ray3f)

    Map ray from local frame coordinates into "world" coordinates

    Declaration
    public Ray3f FromFrame(Ray3f r)
    Parameters
    Type Name Description
    Ray3f r
    Returns
    Type Description
    Ray3f

    FromFrame(ref Ray3f)

    Map ray from local frame coordinates into "world" coordinates

    Declaration
    public Ray3f FromFrame(ref Ray3f r)
    Parameters
    Type Name Description
    Ray3f r
    Returns
    Type Description
    Ray3f

    FromFrameP(Vector2f, Int32)

    Declaration
    [Obsolete("replaced with FromPlaneUV")]
    public Vector3f FromFrameP(Vector2f v, int nPlaneNormalAxis)
    Parameters
    Type Name Description
    Vector2f v
    Int32 nPlaneNormalAxis
    Returns
    Type Description
    Vector3f

    FromFrameP(Vector3d)

    Map point from local frame coordinates into "world" coordinates

    Declaration
    public Vector3d FromFrameP(Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    FromFrameP(ref Vector3d)

    Map point from local frame coordinates into "world" coordinates

    Declaration
    public Vector3d FromFrameP(ref Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    FromFrameP(Vector3f)

    Map point from local frame coordinates into "world" coordinates

    Declaration
    public Vector3f FromFrameP(Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    FromFrameP(ref Vector3f)

    Map point from local frame coordinates into "world" coordinates

    Declaration
    public Vector3f FromFrameP(ref Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    FromFrameV(Vector3d)

    Map vector from local frame coordinates into "world" coordinates

    Declaration
    public Vector3d FromFrameV(Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    FromFrameV(ref Vector3d)

    Map vector from local frame coordinates into "world" coordinates

    Declaration
    public Vector3d FromFrameV(ref Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    FromFrameV(Vector3f)

    Map vector from local frame coordinates into "world" coordinates

    Declaration
    public Vector3f FromFrameV(Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    FromFrameV(ref Vector3f)

    Map vector from local frame coordinates into "world" coordinates

    Declaration
    public Vector3f FromFrameV(ref Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    FromPlaneUV(Vector2f, Int32)

    map from 2D coordinates in frame-axes plane perpendicular to normal axis, to 3D [TODO] check that mapping preserves orientation?

    Declaration
    public Vector3f FromPlaneUV(Vector2f v, int nPlaneNormalAxis)
    Parameters
    Type Name Description
    Vector2f v
    Int32 nPlaneNormalAxis
    Returns
    Type Description
    Vector3f

    GetAxis(Int32)

    Declaration
    public Vector3f GetAxis(int nAxis)
    Parameters
    Type Name Description
    Int32 nAxis
    Returns
    Type Description
    Vector3f

    Interpolate(Frame3f, Frame3f, Single)

    Interpolate between two frames - Lerp for origin, Slerp for rotation

    Declaration
    public static Frame3f Interpolate(Frame3f f1, Frame3f f2, float t)
    Parameters
    Type Name Description
    Frame3f f1
    Frame3f f2
    Single t
    Returns
    Type Description
    Frame3f

    ProjectToPlane(Vector3f, Int32)

    3D projection of point p onto frame-axis plane orthogonal to normal axis

    Declaration
    public Vector3f ProjectToPlane(Vector3f p, int nNormal)
    Parameters
    Type Name Description
    Vector3f p
    Int32 nNormal
    Returns
    Type Description
    Vector3f

    RayPlaneIntersection(Vector3f, Vector3f, Int32)

    Compute intersection of ray with plane passing through frame origin, normal to the specified axis. If the ray is parallel to the plane, no intersection can be found, and we return Vector3f.Invalid

    Declaration
    public Vector3f RayPlaneIntersection(Vector3f ray_origin, Vector3f ray_direction, int nAxisAsNormal)
    Parameters
    Type Name Description
    Vector3f ray_origin
    Vector3f ray_direction
    Int32 nAxisAsNormal
    Returns
    Type Description
    Vector3f

    Rotate(Quaternionf)

    Declaration
    public void Rotate(Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q

    RotateAround(Vector3f, Quaternionf)

    Declaration
    public void RotateAround(Vector3f point, Quaternionf q)
    Parameters
    Type Name Description
    Vector3f point
    Quaternionf q

    RotateAroundAxes(Quaternionf)

    this rotates the frame around its own axes, rather than around the world axes, which is what Rotate() does. So, RotateAroundAxis(AxisAngleD(Z,180)) is equivalent to Rotate(AxisAngleD(My_AxisZ,180)).

    Declaration
    public void RotateAroundAxes(Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q

    Rotated(Quaternionf)

    Declaration
    public Frame3f Rotated(Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q
    Returns
    Type Description
    Frame3f

    Rotated(Single, Int32)

    Declaration
    public Frame3f Rotated(float fAngle, int nAxis)
    Parameters
    Type Name Description
    Single fAngle
    Int32 nAxis
    Returns
    Type Description
    Frame3f

    RotatedAround(Vector3f, Quaternionf)

    Declaration
    public Frame3f RotatedAround(Vector3f point, Quaternionf q)
    Parameters
    Type Name Description
    Vector3f point
    Quaternionf q
    Returns
    Type Description
    Frame3f

    Scale(Vector3f)

    Declaration
    public void Scale(Vector3f scale)
    Parameters
    Type Name Description
    Vector3f scale

    Scale(Single)

    Declaration
    public void Scale(float f)
    Parameters
    Type Name Description
    Single f

    Scaled(Vector3f)

    Declaration
    public Frame3f Scaled(Vector3f scale)
    Parameters
    Type Name Description
    Vector3f scale
    Returns
    Type Description
    Frame3f

    Scaled(Single)

    Declaration
    public Frame3f Scaled(float f)
    Parameters
    Type Name Description
    Single f
    Returns
    Type Description
    Frame3f

    SolveMinRotation(Frame3f, Frame3f)

    Declaration
    public static Frame3f SolveMinRotation(Frame3f source, Frame3f target)
    Parameters
    Type Name Description
    Frame3f source
    Frame3f target
    Returns
    Type Description
    Frame3f

    ToFrame(ref Box3d)

    Map box into local coordinates of Frame

    Declaration
    public Box3d ToFrame(ref Box3d box)
    Parameters
    Type Name Description
    Box3d box
    Returns
    Type Description
    Box3d

    ToFrame(ref Box3f)

    Map box into local coordinates of Frame

    Declaration
    public Box3f ToFrame(ref Box3f box)
    Parameters
    Type Name Description
    Box3f box
    Returns
    Type Description
    Box3f

    ToFrame(Frame3f)

    Map frame into local coordinates of Frame

    Declaration
    public Frame3f ToFrame(Frame3f f)
    Parameters
    Type Name Description
    Frame3f f
    Returns
    Type Description
    Frame3f

    ToFrame(ref Frame3f)

    Map frame into local coordinates of Frame

    Declaration
    public Frame3f ToFrame(ref Frame3f f)
    Parameters
    Type Name Description
    Frame3f f
    Returns
    Type Description
    Frame3f

    ToFrame(Quaternionf)

    Map quaternion into local coordinates of Frame

    Declaration
    public Quaternionf ToFrame(Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q
    Returns
    Type Description
    Quaternionf

    ToFrame(ref Quaternionf)

    Map quaternion into local coordinates of Frame

    Declaration
    public Quaternionf ToFrame(ref Quaternionf q)
    Parameters
    Type Name Description
    Quaternionf q
    Returns
    Type Description
    Quaternionf

    ToFrame(Ray3f)

    Map ray into local coordinates of Frame

    Declaration
    public Ray3f ToFrame(Ray3f r)
    Parameters
    Type Name Description
    Ray3f r
    Returns
    Type Description
    Ray3f

    ToFrame(ref Ray3f)

    Map ray into local coordinates of Frame

    Declaration
    public Ray3f ToFrame(ref Ray3f r)
    Parameters
    Type Name Description
    Ray3f r
    Returns
    Type Description
    Ray3f

    ToFrameP(Vector3d)

    Map point into local coordinates of Frame

    Declaration
    public Vector3d ToFrameP(Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    ToFrameP(ref Vector3d)

    Map point into local coordinates of Frame

    Declaration
    public Vector3d ToFrameP(ref Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    ToFrameP(Vector3f)

    Map point into local coordinates of Frame

    Declaration
    public Vector3f ToFrameP(Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    ToFrameP(ref Vector3f)

    Map point into local coordinates of Frame

    Declaration
    public Vector3f ToFrameP(ref Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    ToFrameV(Vector3d)

    Map vector into local coordinates of Frame

    Declaration
    public Vector3d ToFrameV(Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    ToFrameV(ref Vector3d)

    Map vector into local coordinates of Frame

    Declaration
    public Vector3d ToFrameV(ref Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Vector3d

    ToFrameV(Vector3f)

    Map vector into local coordinates of Frame

    Declaration
    public Vector3f ToFrameV(Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    ToFrameV(ref Vector3f)

    Map vector into local coordinates of Frame

    Declaration
    public Vector3f ToFrameV(ref Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Vector3f

    ToPlaneUV(Vector3f, Int32)

    Project p onto plane axes [TODO] check that mapping preserves orientation?

    Declaration
    public Vector2f ToPlaneUV(Vector3f p, int nNormal)
    Parameters
    Type Name Description
    Vector3f p
    Int32 nNormal
    Returns
    Type Description
    Vector2f

    ToPlaneUV(Vector3f, Int32, Int32, Int32)

    Declaration
    [Obsolete("Use explicit ToPlaneUV instead")]
    public Vector2f ToPlaneUV(Vector3f p, int nNormal, int nAxis0 = -1, int nAxis1 = -1)
    Parameters
    Type Name Description
    Vector3f p
    Int32 nNormal
    Int32 nAxis0
    Int32 nAxis1
    Returns
    Type Description
    Vector2f

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    ToString(String)

    Declaration
    public string ToString(string fmt)
    Parameters
    Type Name Description
    String fmt
    Returns
    Type Description
    String

    Translate(Vector3f)

    Declaration
    public void Translate(Vector3f v)
    Parameters
    Type Name Description
    Vector3f v

    Translated(Vector3f)

    Declaration
    public Frame3f Translated(Vector3f v)
    Parameters
    Type Name Description
    Vector3f v
    Returns
    Type Description
    Frame3f

    Translated(Single, Int32)

    Declaration
    public Frame3f Translated(float fDistance, int nAxis)
    Parameters
    Type Name Description
    Single fDistance
    Int32 nAxis
    Returns
    Type Description
    Frame3f
    In This Article
    Back to top ViRGIS VR GIS