Skip to main content

Html2CanvasPoint

Hierarchy

  • BimPointBase
    • Html2CanvasPoint

Index

Constructors

publicconstructor

Properties

public_parent

publicisEnabled

isEnabled: boolean = true

When true then onPointTrackableScreen will trigger for this instance. Otherwise it will not

publicreadonlyplane

plane: Plane

Plane that this point lies on.

Accessors

publiclocalX

  • get localX(): number
  • X coordinate of point in local space.


    Returns number

publiclocalY

  • get localY(): number
  • Y coordinate of point in local space.


    Returns number

publiclocalZ

  • get localZ(): number
  • Z coordinate of point in local space.


    Returns number

publicx

  • get x(): number
  • set x(val: number): void
  • X coordinate of point in world space.


    Returns number

  • Set the X coordinate of point in world space.


    Parameters

    • val: number

    Returns void

publicy

  • get y(): number
  • set y(val: number): void
  • Y coordinate of point in world space.


    Returns number

  • Set the Y coordinate of point in world space.


    Parameters

    • val: number

    Returns void

publicz

  • get z(): number
  • set z(val: number): void
  • Z coordinate of point in world space.


    Returns number

  • Set the Z coordinate of point in world space.


    Parameters

    • val: number

    Returns void

Methods

publicmove

  • Attempt to move a point to a new location on Plane. To find the location, a ray is shot from camera through canvasCoordinate and then an intersection test is performed. If the ray intersects Plane, the point is moved to the coordinates of the intersection. Otherwise nothing happens. The point is assigned the same x,y,z values as the coordinate where the ray intersects the plane.


    Parameters

    Returns PointMoveResult

publicrotate

  • rotate(): void
  • Returns void

publicscale

  • scale(retainAspectRatio?: boolean): void
  • Parameters

    • retainAspectRatio: boolean = true

    Returns void

publicsetLocals

  • setLocals(x: number, y: number, z: number): void
  • Set coordinates in local space.


    Parameters

    • x: number

      X coordinate in local space.

    • y: number

      Y coordinate in local space.

    • z: number

      Z coordinate in local space.

    Returns void

publictranlate

  • tranlate(): void
  • Returns void